Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix #778, Add CFE_Assert library and test module #804

Merged

Conversation

jphickey
Copy link
Contributor

Describe the contribution
Provides ability to load UT assert as a CFE app, and an example of using this to test some basic CFE ES functions.

This introduces a separate library for the basic UT assert functions (cfe_assert) and an app that executes the test (cfe_testrunner) rather than combining these into a single module.

Fixes #778

Also adds a small "howto" document to provide an example of the lines that need to be added to cfe_es_startup.scr to make this run, and document the dependencies between these modules.

Testing performed
Build and run CFE, confirm tests execute and pass.

Expected behavior changes
Implements functional test framework (same as PR #779)

System(s) tested on
Ubuntu 20.04

Additional context

This replaces my original PR #779 - which had the same but as a single cfe_assert app. The problem with this was that it didn't guarantee the init routine completed before the subsequent test cases were loaded, because app init is run in a separate thread, where as lib init is run synchronously within the main startup thread.

This approach requires two entries in the startup script rather than one, but does ensure that the init is race-free.

Contributor Info - All information REQUIRED for consideration of pull request
Joseph Hickey, Vantage Systems, Inc.

Provides ability to load UT assert as a CFE app, and an example
of using this to test some basic CFE ES functions.

This introduces a separate library for the basic UT assert functions
(cfe_assert) and an app that executes the test (cfe_testrunner) rather
than combining these into a single module.
@astrogeco astrogeco added IC-20200812 CCB:Approved Indicates code review and approval by community CCB labels Aug 18, 2020
@astrogeco astrogeco changed the base branch from main to integration-candidate August 18, 2020 15:57
@astrogeco astrogeco merged commit d50028d into nasa:integration-candidate Aug 18, 2020
@skliper skliper added this to the 7.0.0 milestone Aug 21, 2020
@jphickey jphickey deleted the fix-778-cfe-assert-take2 branch September 29, 2020 21:52
@skliper skliper requested a review from zanzaben March 16, 2021 13:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CCB:Approved Indicates code review and approval by community CCB
Projects
None yet
Development

Successfully merging this pull request may close these issues.

UT Assert library for CFE functional tests
3 participants